import { myRequest } from '../utils/request.js'
const userId=uni.getStorageSync('userId')
// 首页5个
export function homestaffAPI(data) {
	return myRequest({
		url: "/app-api/member/staff/list",
		data,
		method: "POST"
	})
}
// 收藏、取消收藏
export function staffscAPI(url,data) {
	return myRequest({
		url: "/app-api/member/staff/"+url,
		data:{
			...data,
			userId
		},
		method: "POST"
	})
}
// 
export function getcityAPI(data) {
	return myRequest({
		url: "/app-api/member/staff/getCity",
		data,
		method: "POST"
	})
}
// 
export function cityListAPI(data) {
	return myRequest({
		url: "/app-api/system/area/city",
		data,
		method: "GET"
	})
}
// 获得签到规则列表
export function signListAPI(data) {
	return myRequest({
		url: "/app-api/member/sign-in/config/list",
		data,
		method: "GET"
	})
}
// 签到
export function signCreateAPI(data) {
	return myRequest({
		url: "/app-api/member/sign-in/record/create",
		data,
		method: "POST"
	})
}
// 获得个人签到统计
export function signInfoAPI(data) {
	return myRequest({
		url: "/app-api/member/sign-in/record/get-summary",
		data,
		method: "GET"
	})
}
export function bannerListAPI() {
	return myRequest({
		url: "/app-api/member/banner/list",
		method: "GET"
	})
}
// 首页优惠券
export function homecouponAPI(data) {
	return myRequest({
		url: "/app-api/system/coupon-template/page",
		data,
		method: "GET"
	})
}
// 首页优惠券领取
export function getcouponAPI(data) {
	return myRequest({
		url: "/app-api/system/coupon-template/get",
		data,
		method: "GET"
	})
}
